package src.lab02.test14;

/**
 * Created by 林云志 on 2017/10/23.
 */
public class Circle {

    //属性
    double radius;

    //构造函数
    Circle(double radius){
        this.radius = radius;
    }

    //方法

    public double getArea(){
        double area = Math.PI * radius*  radius;
        return area;
    }
}
